@(page: models.cms.PageDto)(block: models.cms.BlockDto)
@contents = @{(block.getData().get("contents")).asInstanceOf[List[models.core.catalog.VigneronDtoInfo]]}
	<h5>@block.getParams().get("title")</h5>
	<div class="fondblanc">
	@if(contents != null){
	@for(vigneron <- contents){
			@if(contents.indexOf(vigneron) == 0){
				<div class="portrait portraitfirst">
			} else {
				<div class="portrait">
			}
			<a title="" href="#"> <img width="192" height="192" border="0"
				alt="" src="@routes.Assets.at("upload/vignerons/vigneronsdefault-big.jpg")">
			</a>
			<div class="nomvigneron">
				<a title="" href="@routes.Application.showByContent("vigneron", vigneron.getContent().getKey())">@vigneron.getFirstName() @vigneron.getLastName()</a>
			</div>
			<div class="domainevigneron">
				<a title="" href="@routes.Application.showByContent("vigneron", vigneron.getContent().getKey())">@for(domain <- vigneron.getDomains()){@domain.getName()}</a>
			</div>
			<div class="couleurproduit">
				<div>BG</div>
				@for(color <- vigneron.getColors()){
					<img class="goutte@color.getId()" alt="" src="@routes.Assets.at("images/goutte-" + color.getName().toLowerCase() + ".png")"> 
				}
			</div>
			<!-- <div class="membrerecommande">
				<img width="34" height="34"
					src="@routes.Assets.at("upload/vignerons/vignerons6-small.jpg")"> <a
					class="recommandations_click" href="#"> Jérôme et 2 autres amis
					<br> recommandent
				</a>
			</div>-->
			@if(vigneron.getRatings() != null){
				@for(rating <- vigneron.getRatings()){
					<div class="note@rating.getType()aussi">
						 @rating.getScore()<br> <span>@rating.getType()</span>
					</div>
				}
			}
		</div>		
		}
	
		<div class="clear"></div>
	</div>
	<div class="lienVoirTout">
		<a title="Voir tout" href="@routes.Application.showByContent("related-vigneron", page.getParams().get("content")(0))"> 
			<img width="145" height="23" border="0" alt="Voir tout" src="@routes.Assets.at("images/bouton-voir-tout.png")">
		</a>
	</div>
}